<?php
	session_start();
	$chatLogPath = "../coreChat/log/chatLog.txt";
		$data = "<font color='#f00'>--- ".$_SESSION['login']." is offline"." ---</font><br/>";
		file_put_contents($chatLogPath, $data, FILE_APPEND);
	session_unset();
	session_destroy();
	
	header("Location: login.php");
?>